//
//  TXTDownloader.h
//  FileSharing
//
//  Created by 祁俊喜 on 2024/4/23.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface TXTDownloader : NSObject

@property (nonatomic, copy) NSString *txtUrl;

@property (nonatomic, copy) NSString *txtPath;

@property (nonatomic, readonly, getter = isDownloading) BOOL downloading;

@property (nonatomic, copy) void (^progressHandler)(double progress);

@property (nonatomic, copy) void (^completionHandler)(void);

-(void)start;

-(void)pause;

@end

NS_ASSUME_NONNULL_END
